﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002EF RID: 751
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientDownloadData : IMessage<ClientDownloadData>, IMessage, IEquatable<ClientDownloadData>, IDeepCloneable<ClientDownloadData>, IBufferMessage
	{
		// Token: 0x170009B1 RID: 2481
		// (get) Token: 0x06002186 RID: 8582 RVA: 0x0005EAE1 File Offset: 0x0005CCE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientDownloadData> Parser
		{
			get
			{
				return ClientDownloadData._parser;
			}
		}

		// Token: 0x170009B2 RID: 2482
		// (get) Token: 0x06002187 RID: 8583 RVA: 0x0005EAE8 File Offset: 0x0005CCE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientDownloadDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009B3 RID: 2483
		// (get) Token: 0x06002188 RID: 8584 RVA: 0x0005EAFA File Offset: 0x0005CCFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientDownloadData.Descriptor;
			}
		}

		// Token: 0x06002189 RID: 8585 RVA: 0x0005EB01 File Offset: 0x0005CD01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData()
		{
		}

		// Token: 0x0600218A RID: 8586 RVA: 0x0005EB14 File Offset: 0x0005CD14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData(ClientDownloadData other) : this()
		{
			this.version_ = other.version_;
			this.time_ = other.time_;
			this.data_ = other.data_;
			this.nJDDJHAPNBO_ = other.nJDDJHAPNBO_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600218B RID: 8587 RVA: 0x0005EB68 File Offset: 0x0005CD68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData Clone()
		{
			return new ClientDownloadData(this);
		}

		// Token: 0x170009B4 RID: 2484
		// (get) Token: 0x0600218C RID: 8588 RVA: 0x0005EB70 File Offset: 0x0005CD70
		// (set) Token: 0x0600218D RID: 8589 RVA: 0x0005EB78 File Offset: 0x0005CD78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Version
		{
			get
			{
				return this.version_;
			}
			set
			{
				this.version_ = value;
			}
		}

		// Token: 0x170009B5 RID: 2485
		// (get) Token: 0x0600218E RID: 8590 RVA: 0x0005EB81 File Offset: 0x0005CD81
		// (set) Token: 0x0600218F RID: 8591 RVA: 0x0005EB89 File Offset: 0x0005CD89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long Time
		{
			get
			{
				return this.time_;
			}
			set
			{
				this.time_ = value;
			}
		}

		// Token: 0x170009B6 RID: 2486
		// (get) Token: 0x06002190 RID: 8592 RVA: 0x0005EB92 File Offset: 0x0005CD92
		// (set) Token: 0x06002191 RID: 8593 RVA: 0x0005EB9A File Offset: 0x0005CD9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ByteString Data
		{
			get
			{
				return this.data_;
			}
			set
			{
				this.data_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
			}
		}

		// Token: 0x170009B7 RID: 2487
		// (get) Token: 0x06002192 RID: 8594 RVA: 0x0005EBAD File Offset: 0x0005CDAD
		// (set) Token: 0x06002193 RID: 8595 RVA: 0x0005EBB5 File Offset: 0x0005CDB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NJDDJHAPNBO
		{
			get
			{
				return this.nJDDJHAPNBO_;
			}
			set
			{
				this.nJDDJHAPNBO_ = value;
			}
		}

		// Token: 0x06002194 RID: 8596 RVA: 0x0005EBBE File Offset: 0x0005CDBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientDownloadData);
		}

		// Token: 0x06002195 RID: 8597 RVA: 0x0005EBCC File Offset: 0x0005CDCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientDownloadData other)
		{
			return other != null && (other == this || (this.Version == other.Version && this.Time == other.Time && !(this.Data != other.Data) && this.NJDDJHAPNBO == other.NJDDJHAPNBO && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002196 RID: 8598 RVA: 0x0005EC3C File Offset: 0x0005CE3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Version != 0U)
			{
				num ^= this.Version.GetHashCode();
			}
			if (this.Time != 0L)
			{
				num ^= this.Time.GetHashCode();
			}
			if (this.Data.Length != 0)
			{
				num ^= this.Data.GetHashCode();
			}
			if (this.NJDDJHAPNBO != 0U)
			{
				num ^= this.NJDDJHAPNBO.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002197 RID: 8599 RVA: 0x0005ECC8 File Offset: 0x0005CEC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002198 RID: 8600 RVA: 0x0005ECD0 File Offset: 0x0005CED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002199 RID: 8601 RVA: 0x0005ECDC File Offset: 0x0005CEDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Version != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Version);
			}
			if (this.Time != 0L)
			{
				output.WriteRawTag(16);
				output.WriteInt64(this.Time);
			}
			if (this.Data.Length != 0)
			{
				output.WriteRawTag(26);
				output.WriteBytes(this.Data);
			}
			if (this.NJDDJHAPNBO != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.NJDDJHAPNBO);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600219A RID: 8602 RVA: 0x0005ED74 File Offset: 0x0005CF74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Version != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Version);
			}
			if (this.Time != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.Time);
			}
			if (this.Data.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeBytesSize(this.Data);
			}
			if (this.NJDDJHAPNBO != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NJDDJHAPNBO);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600219B RID: 8603 RVA: 0x0005EE00 File Offset: 0x0005D000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientDownloadData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Version != 0U)
			{
				this.Version = other.Version;
			}
			if (other.Time != 0L)
			{
				this.Time = other.Time;
			}
			if (other.Data.Length != 0)
			{
				this.Data = other.Data;
			}
			if (other.NJDDJHAPNBO != 0U)
			{
				this.NJDDJHAPNBO = other.NJDDJHAPNBO;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600219C RID: 8604 RVA: 0x0005EE7D File Offset: 0x0005D07D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600219D RID: 8605 RVA: 0x0005EE88 File Offset: 0x0005D088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.Version = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.Time = input.ReadInt64();
						continue;
					}
				}
				else
				{
					if (num == 26U)
					{
						this.Data = input.ReadBytes();
						continue;
					}
					if (num == 32U)
					{
						this.NJDDJHAPNBO = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000DA9 RID: 3497
		private static readonly MessageParser<ClientDownloadData> _parser = new MessageParser<ClientDownloadData>(() => new ClientDownloadData());

		// Token: 0x04000DAA RID: 3498
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DAB RID: 3499
		public const int VersionFieldNumber = 1;

		// Token: 0x04000DAC RID: 3500
		private uint version_;

		// Token: 0x04000DAD RID: 3501
		public const int TimeFieldNumber = 2;

		// Token: 0x04000DAE RID: 3502
		private long time_;

		// Token: 0x04000DAF RID: 3503
		public const int DataFieldNumber = 3;

		// Token: 0x04000DB0 RID: 3504
		private ByteString data_ = ByteString.Empty;

		// Token: 0x04000DB1 RID: 3505
		public const int NJDDJHAPNBOFieldNumber = 4;

		// Token: 0x04000DB2 RID: 3506
		private uint nJDDJHAPNBO_;
	}
}
